import { get, post } from '@/utils/request'

export function getBanner() {
    return get(`/index.php?s=httpapi&appid=1&appsecret=PHPCMF3492C52D60F5A&id=4`)
}
export function getCategory() {
    return get(`/index.php?s=httpapi&appid=1&appsecret=PHPCMF3492C52D60F5A&id=1`)
}
export function getNewsList({ page = 1, size = 10 } = {}) {
    return get(`/index.php?s=httpapi&appid=1&appsecret=PHPCMF3492C52D60F5A&id=2&page=${page}&size=${size}`)
}
export function getNewsDetail({ id } = {}) {
    return get(`/index.php?s=httpapi&appid=1&appsecret=PHPCMF3492C52D60F5A&id=3&newsid=${id}`)
}
